1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  23 #
  24 
  25 include $(SRC)/uts/Makefile.uts
  26 
  27 FILEMODE=644
  28 
  29 #
  30 #       Note that the following headers are present in the kernel but
  31 #       neither installed or shipped as part of the product:
  32 #               cpuid_drv.h:            Private interface for cpuid consumers
  33 #               unix_bb_info.h:         Private interface to kcov
  34 #
  35 
  36 i386_HDRS=                      \
  37         agp/agpamd64gart_io.h   \
  38         agp/agpdefs.h           \
  39         agp/agpgart_impl.h      \
  40         agp/agpmaster_io.h      \
  41         agp/agptarget_io.h      \
  42         agpgart.h               \
  43         asy.h                   \
  44         fd_debug.h              \
  45         fdc.h                   \
  46         fdmedia.h               \
  47         mouse.h                 \
  48         ucode.h
  49 
  50 sparc_HDRS=                     \
  51         mouse.h                 \
  52         scsi/targets/ssddef.h   \
  53         $(MDESCHDRS)
  54 
  55 # Generated headers
  56 GENHDRS=                        \
  57         priv_const.h            \
  58         priv_names.h            \
  59         usb/usbdevs.h
  60 
  61 CHKHDRS=                        \
  62         acpi_drv.h              \
  63         acct.h                  \
  64         acctctl.h               \
  65         acl.h                   \
  66         acl_impl.h              \
  67         aggr.h                  \
  68         aggr_impl.h             \
  69         aio.h                   \
  70         aio_impl.h              \
  71         aio_req.h               \
  72         aiocb.h                 \
  73         ascii.h                 \
  74         asynch.h                \
  75         atomic.h                \
  76         attr.h                  \
  77         audio.h                 \
  78         audioio.h               \
  79         autoconf.h              \
  80         auxv.h                  \
  81         auxv_386.h              \
  82         auxv_SPARC.h            \
  83         avl.h                   \
  84         avl_impl.h              \
  85         bitmap.h                \
  86         bitset.h                \
  87         bl.h                    \
  88         blkdev.h                \
  89         bofi.h                  \
  90         bofi_impl.h             \
  91         bpp_io.h                \
  92         bootstat.h              \
  93         brand.h                 \
  94         buf.h                   \
  95         bufmod.h                \
  96         bustypes.h              \
  97         byteorder.h             \
  98         callb.h                 \
  99         callo.h                 \
 100         cap_util.h              \
 101         cpucaps.h               \
 102         cpucaps_impl.h          \
 103         ccompile.h              \
 104         cdio.h                  \
 105         cladm.h                 \
 106         class.h                 \
 107         clconf.h                \
 108         clock_impl.h            \
 109         cmlb.h                  \
 110         cmn_err.h               \
 111         compress.h              \
 112         condvar.h               \
 113         condvar_impl.h          \
 114         conf.h                  \
 115         consdev.h               \
 116         console.h               \
 117         consplat.h              \
 118         vt.h                    \
 119         vtdaemon.h              \
 120         kd.h                    \
 121         contract.h              \
 122         contract_impl.h         \
 123         copyops.h               \
 124         core.h                  \
 125         corectl.h               \
 126         cpc_impl.h              \
 127         cpc_pcbe.h              \
 128         cpr.h                   \
 129         cpupart.h               \
 130         cpuvar.h                \
 131         crc32.h                 \
 132         cred.h                  \
 133         cred_impl.h             \
 134         crtctl.h                \
 135         cryptmod.h              \
 136         csiioctl.h              \
 137         ctf.h                   \
 138         ctfs.h                  \
 139         ctfs_impl.h             \
 140         ctf_api.h               \
 141         ctype.h                 \
 142         cyclic.h                \
 143         cyclic_impl.h           \
 144         dacf.h                  \
 145         dacf_impl.h             \
 146         damap.h                 \
 147         damap_impl.h            \
 148         dc_ki.h                 \
 149         ddi.h                   \
 150         ddifm.h                 \
 151         ddifm_impl.h            \
 152         ddi_hp.h                \
 153         ddi_hp_impl.h           \
 154         ddi_intr.h              \
 155         ddi_intr_impl.h         \
 156         ddi_impldefs.h          \
 157         ddi_implfuncs.h         \
 158         ddi_obsolete.h          \
 159         ddi_timer.h             \
 160         ddidevmap.h             \
 161         ddidmareq.h             \
 162         ddimapreq.h             \
 163         ddipropdefs.h           \
 164         dditypes.h              \
 165         debug.h                 \
 166         des.h                   \
 167         devctl.h                \
 168         devcache.h              \
 169         devcache_impl.h         \
 170         devfm.h                 \
 171         devid_cache.h           \
 172         devinfo_impl.h          \
 173         devops.h                \
 174         devpolicy.h             \
 175         devpoll.h               \
 176         dirent.h                \
 177         disp.h                  \
 178         dkbad.h                 \
 179         dkio.h                  \
 180         dklabel.h               \
 181         dl.h                    \
 182         dlpi.h                  \
 183         dld.h                   \
 184         dld_impl.h              \
 185         dld_ioc.h               \
 186         dls.h                   \
 187         dls_mgmt.h              \
 188         dls_impl.h              \
 189         dma_i8237A.h            \
 190         dnlc.h                  \
 191         door.h                  \
 192         door_data.h             \
 193         door_impl.h             \
 194         dtrace.h                \
 195         dtrace_impl.h           \
 196         dumpadm.h               \
 197         dumphdr.h               \
 198         ecppsys.h               \
 199         ecppio.h                \
 200         ecppreg.h               \
 201         ecppvar.h               \
 202         efi_partition.h         \
 203         elf.h                   \
 204         elf_386.h               \
 205         elf_SPARC.h             \
 206         elf_notes.h             \
 207         elf_amd64.h             \
 208         elftypes.h              \
 209         emul64.h                \
 210         emul64cmd.h             \
 211         emul64var.h             \
 212         epm.h                   \
 213         errno.h                 \
 214         errorq.h                \
 215         errorq_impl.h           \
 216         esunddi.h               \
 217         ethernet.h              \
 218         euc.h                   \
 219         eucioctl.h              \
 220         exacct.h                \
 221         exacct_catalog.h        \
 222         exacct_impl.h           \
 223         exec.h                  \
 224         exechdr.h               \
 225         extdirent.h             \
 226         fault.h                 \
 227         fasttrap.h              \
 228         fasttrap_impl.h         \
 229         fbio.h                  \
 230         fbuf.h                  \
 231         fcntl.h                 \
 232         fct.h                   \
 233         fct_defines.h           \
 234         fctio.h                 \
 235         fdbuffer.h              \
 236         fdio.h                  \
 237         feature_tests.h         \
 238         fem.h                   \
 239         file.h                  \
 240         filio.h                 \
 241         flock.h                 \
 242         flock_impl.h            \
 243         fork.h                  \
 244         fss.h                   \
 245         fsspriocntl.h           \
 246         fsid.h                  \
 247         fssnap.h                \
 248         fssnap_if.h             \
 249         fstyp.h                 \
 250         ftrace.h                \
 251         fx.h                    \
 252         fxpriocntl.h            \
 253         gfs.h                   \
 254         gld.h                   \
 255         gldpriv.h               \
 256         group.h                 \
 257         hdio.h                  \
 258         hook.h                  \
 259         hook_event.h            \
 260         hook_impl.h             \
 261         hwconf.h                \
 262         ia.h                    \
 263         iapriocntl.h            \
 264         ibpart.h                \
 265         id32.h                  \
 266         idmap.h                 \
 267         ieeefp.h                \
 268         id_space.h              \
 269         instance.h              \
 270         int_const.h             \
 271         int_fmtio.h             \
 272         int_limits.h            \
 273         int_types.h             \
 274         inttypes.h              \
 275         ioccom.h                \
 276         ioctl.h                 \
 277         ipc.h                   \
 278         ipc_impl.h              \
 279         ipc_rctl.h              \
 280         ipmi.h                  \
 281         isa_defs.h              \
 282         iscsi_authclient.h      \
 283         iscsi_authclientglue.h  \
 284         iscsi_protocol.h        \
 285         jioctl.h                \
 286         kbd.h                   \
 287         kbdreg.h                \
 288         kbio.h                  \
 289         kcpc.h                  \
 290         kdi.h                   \
 291         kdi_impl.h              \
 292         kiconv.h                \
 293         kiconv_big5_utf8.h      \
 294         kiconv_cck_common.h     \
 295         kiconv_cp950hkscs_utf8.h        \
 296         kiconv_emea1.h          \
 297         kiconv_emea2.h          \
 298         kiconv_euckr_utf8.h     \
 299         kiconv_euctw_utf8.h     \
 300         kiconv_gb18030_utf8.h   \
 301         kiconv_gb2312_utf8.h    \
 302         kiconv_hkscs_utf8.h     \
 303         kiconv_ja.h             \
 304         kiconv_ja_jis_to_unicode.h      \
 305         kiconv_ja_unicode_to_jis.h      \
 306         kiconv_ko.h             \
 307         kiconv_latin1.h         \
 308         kiconv_sc.h             \
 309         kiconv_tc.h             \
 310         kiconv_uhc_utf8.h       \
 311         kiconv_utf8_big5.h      \
 312         kiconv_utf8_cp950hkscs.h        \
 313         kiconv_utf8_euckr.h     \
 314         kiconv_utf8_euctw.h     \
 315         kiconv_utf8_gb18030.h   \
 316         kiconv_utf8_gb2312.h    \
 317         kiconv_utf8_hkscs.h     \
 318         kiconv_utf8_uhc.h       \
 319         kidmap.h                \
 320         klpd.h                  \
 321         klwp.h                  \
 322         kmdb.h                  \
 323         kmem.h                  \
 324         kmem_impl.h             \
 325         kobj.h                  \
 326         kobj_impl.h             \
 327         ksocket.h               \
 328         kstat.h                 \
 329         kstr.h                  \
 330         ksyms.h                 \
 331         ksynch.h                \
 332         ldterm.h                \
 333         lgrp.h                  \
 334         lgrp_user.h             \
 335         libc_kernel.h           \
 336         link.h                  \
 337         list.h                  \
 338         list_impl.h             \
 339         llc1.h                  \
 340         loadavg.h               \
 341         lock.h                  \
 342         lockfs.h                \
 343         lockstat.h              \
 344         lofi.h                  \
 345         log.h                   \
 346         logindmux.h             \
 347         logindmux_impl.h        \
 348         lwp.h                   \
 349         lwp_timer_impl.h        \
 350         lwp_upimutex_impl.h     \
 351         lpif.h                  \
 352         mac.h                   \
 353         mac_client.h            \
 354         mac_client_impl.h       \
 355         mac_ether.h             \
 356         mac_flow.h              \
 357         mac_flow_impl.h         \
 358         mac_impl.h              \
 359         mac_provider.h          \
 360         mac_soft_ring.h         \
 361         mac_stat.h              \
 362         machelf.h               \
 363         map.h                   \
 364         md4.h                   \
 365         md5.h                   \
 366         md5_consts.h            \
 367         mdi_impldefs.h          \
 368         mem.h                   \
 369         mem_config.h            \
 370         memlist.h               \
 371         mkdev.h                 \
 372         mhd.h                   \
 373         mii.h                   \
 374         miiregs.h               \
 375         mixer.h                 \
 376         mman.h                  \
 377         mmapobj.h               \
 378         mntent.h                \
 379         mntio.h                 \
 380         mnttab.h                \
 381         modctl.h                \
 382         mode.h                  \
 383         model.h                 \
 384         modhash.h               \
 385         modhash_impl.h          \
 386         mount.h                 \
 387         mouse.h                 \
 388         msacct.h                \
 389         msg.h                   \
 390         msg_impl.h              \
 391         msio.h                  \
 392         msreg.h                 \
 393         mtio.h                  \
 394         multidata.h             \
 395         multidata_impl.h        \
 396         mutex.h                 \
 397         nbmlock.h               \
 398         ndifm.h                 \
 399         ndi_impldefs.h          \
 400         net80211.h              \
 401         net80211_crypto.h       \
 402         net80211_ht.h           \
 403         net80211_proto.h        \
 404         netconfig.h             \
 405         neti.h                  \
 406         netstack.h              \
 407         nexusdefs.h             \
 408         note.h                  \
 409         nvpair.h                \
 410         nvpair_impl.h           \
 411         objfs.h                 \
 412         objfs_impl.h            \
 413         ontrap.h                \
 414         open.h                  \
 415         openpromio.h            \
 416         panic.h                 \
 417         param.h                 \
 418         pathconf.h              \
 419         pathname.h              \
 420         pattr.h                 \
 421         queue.h                 \
 422         serializer.h            \
 423         pbio.h                  \
 424         pccard.h                \
 425         pci.h                   \
 426         pcie.h                  \
 427         pci_impl.h              \
 428         pci_tools.h             \
 429         pcmcia.h                \
 430         pctypes.h               \
 431         pfmod.h                 \
 432         pg.h                    \
 433         pghw.h                  \
 434         physmem.h               \
 435         pkp_hash.h              \
 436         pm.h                    \
 437         policy.h                \
 438         poll.h                  \
 439         poll_impl.h             \
 440         pool.h                  \
 441         pool_impl.h             \
 442         pool_pset.h             \
 443         port.h                  \
 444         port_impl.h             \
 445         port_kernel.h           \
 446         portif.h                \
 447         ppmio.h                 \
 448         pppt_ic_if.h            \
 449         pppt_ioctl.h            \
 450         priocntl.h              \
 451         priv.h                  \
 452         priv_impl.h             \
 453         prnio.h                 \
 454         proc.h                  \
 455         processor.h             \
 456         procfs.h                \
 457         procset.h               \
 458         project.h               \
 459         protosw.h               \
 460         prsystm.h               \
 461         pset.h                  \
 462         pshot.h                 \
 463         ptem.h                  \
 464         ptms.h                  \
 465         ptyvar.h                \
 466         raidioctl.h             \
 467         ramdisk.h               \
 468         random.h                \
 469         rctl.h                  \
 470         rctl_impl.h             \
 471         rds.h                   \
 472         reboot.h                \
 473         refstr.h                \
 474         refstr_impl.h           \
 475         resource.h              \
 476         rlioctl.h               \
 477         rt.h                    \
 478         rtpriocntl.h            \
 479         rwlock.h                \
 480         rwlock_impl.h           \
 481         rwstlock.h              \
 482         sad.h                   \
 483         schedctl.h              \
 484         sdt.h                   \
 485         select.h                \
 486         sem.h                   \
 487         sem_impl.h              \
 488         sema_impl.h             \
 489         semaphore.h             \
 490         sendfile.h              \
 491         ser_sync.h              \
 492         session.h               \
 493         sha1.h                  \
 494         sha1_consts.h           \
 495         sha2.h                  \
 496         sha2_consts.h           \
 497         share.h                 \
 498         shm.h                   \
 499         shm_impl.h              \
 500         sid.h                   \
 501         siginfo.h               \
 502         signal.h                \
 503         sleepq.h                \
 504         smbios.h                \
 505         smbios_impl.h           \
 506         sobject.h               \
 507         socket.h                \
 508         socket_impl.h           \
 509         socket_proto.h          \
 510         socketvar.h             \
 511         sockfilter.h            \
 512         sockio.h                \
 513         soundcard.h             \
 514         squeue.h                \
 515         squeue_impl.h           \
 516         srn.h                   \
 517         sservice.h              \
 518         stat.h                  \
 519         statfs.h                \
 520         statvfs.h               \
 521         stdbool.h               \
 522         stdint.h                \
 523         stermio.h               \
 524         stmf.h                  \
 525         stmf_defines.h          \
 526         stmf_ioctl.h            \
 527         stmf_sbd_ioctl.h        \
 528         stream.h                \
 529         strft.h                 \
 530         strlog.h                \
 531         strmdep.h               \
 532         stropts.h               \
 533         strredir.h              \
 534         strstat.h               \
 535         strsubr.h               \
 536         strsun.h                \
 537         strtty.h                \
 538         sunddi.h                \
 539         sunldi.h                \
 540         sunldi_impl.h           \
 541         sunmdi.h                \
 542         sunndi.h                \
 543         sunos_dhcp_class.h      \
 544         sunpm.h                 \
 545         suntpi.h                \
 546         suntty.h                \
 547         swap.h                  \
 548         synch.h                 \
 549         sysdc.h                 \
 550         sysdc_impl.h            \
 551         syscall.h               \
 552         sysconf.h               \
 553         sysconfig.h             \
 554         sysevent.h              \
 555         sysevent_impl.h         \
 556         sysinfo.h               \
 557         syslog.h                \
 558         sysmacros.h             \
 559         sysmsg_impl.h           \
 560         systeminfo.h            \
 561         systm.h                 \
 562         task.h                  \
 563         taskq.h                 \
 564         taskq_impl.h            \
 565         t_kuser.h               \
 566         t_lock.h                \
 567         telioctl.h              \
 568         termio.h                \
 569         termios.h               \
 570         termiox.h               \
 571         thread.h                \
 572         ticlts.h                \
 573         ticots.h                \
 574         ticotsord.h             \
 575         tihdr.h                 \
 576         time.h                  \
 577         time_impl.h             \
 578         time_std_impl.h         \
 579         timeb.h                 \
 580         timer.h                 \
 581         times.h                 \
 582         timex.h                 \
 583         timod.h                 \
 584         tirdwr.h                \
 585         tiuser.h                \
 586         tl.h                    \
 587         tnf.h                   \
 588         tnf_com.h               \
 589         tnf_probe.h             \
 590         tnf_writer.h            \
 591         todio.h                 \
 592         tpicommon.h             \
 593         ts.h                    \
 594         tspriocntl.h            \
 595         ttcompat.h              \
 596         ttold.h                 \
 597         tty.h                   \
 598         ttychars.h              \
 599         ttydev.h                \
 600         tuneable.h              \
 601         turnstile.h             \
 602         types.h                 \
 603         types32.h               \
 604         tzfile.h                \
 605         u8_textprep.h           \
 606         u8_textprep_data.h      \
 607         uadmin.h                \
 608         ucred.h                 \
 609         uio.h                   \
 610         ulimit.h                \
 611         un.h                    \
 612         unistd.h                \
 613         user.h                  \
 614         ustat.h                 \
 615         utime.h                 \
 616         utsname.h               \
 617         utssys.h                \
 618         uuid.h                  \
 619         va_impl.h               \
 620         va_list.h               \
 621         var.h                   \
 622         varargs.h               \
 623         vfs.h                   \
 624         vfs_opreg.h             \
 625         vfstab.h                \
 626         vgareg.h                \
 627         videodev2.h             \
 628         visual_io.h             \
 629         vlan.h                  \
 630         vm.h                    \
 631         vm_usage.h              \
 632         vmem.h                  \
 633         vmem_impl.h             \
 634         vmsystm.h               \
 635         vnic.h                  \
 636         vnic_impl.h             \
 637         vnode.h                 \
 638         vscan.h                 \
 639         vtoc.h                  \
 640         vtrace.h                \
 641         vuid_event.h            \
 642         vuid_wheel.h            \
 643         vuid_queue.h            \
 644         vuid_state.h            \
 645         vuid_store.h            \
 646         wait.h                  \
 647         waitq.h                 \
 648         wanboot_impl.h          \
 649         watchpoint.h            \
 650         winlockio.h             \
 651         zcons.h                 \
 652         zone.h                  \
 653         xti_inet.h              \
 654         xti_osi.h               \
 655         xti_xtiopt.h            \
 656         zmod.h
 657 
 658 HDRS=                           \
 659         $(GENHDRS)              \
 660         $(CHKHDRS)
 661 
 662 AUDIOHDRS=                      \
 663         ac97.h                  \
 664         audio_common.h          \
 665         audio_driver.h          \
 666         audio_oss.h             \
 667         g711.h
 668 
 669 AVHDRS=                         \
 670         iec61883.h
 671 
 672 BSCHDRS=                        \
 673         bscbus.h                \
 674         bscv_impl.h             \
 675         lom_ebuscodes.h         \
 676         lom_io.h                \
 677         lom_priv.h              \
 678         lombus.h
 679 
 680 MDESCHDRS=                      \
 681         mdesc.h                 \
 682         mdesc_impl.h            
 683 
 684 CPUDRVHDRS=                     \
 685         cpudrv.h
 686 
 687 CRYPTOHDRS=                     \
 688         elfsign.h               \
 689         ioctl.h                 \
 690         ioctladmin.h            \
 691         common.h                \
 692         impl.h                  \
 693         spi.h                   \
 694         api.h                   \
 695         ops_impl.h              \
 696         sched_impl.h
 697 
 698 DCAMHDRS=                       \
 699         dcam1394_io.h
 700 
 701 IBHDRS=                 \
 702         ib_types.h      \
 703         ib_pkt_hdrs.h
 704 
 705 IBTLHDRS=               \
 706         ibtl_types.h    \
 707         ibtl_status.h   \
 708         ibti.h          \
 709         ibti_cm.h       \
 710         ibci.h          \
 711         ibti_common.h   \
 712         ibvti.h         \
 713         ibtl_ci_types.h
 714 
 715 IBTLIMPLHDRS=           \
 716         ibtl_util.h
 717 
 718 IBNEXHDRS=              \
 719         ibnex_devctl.h
 720 
 721 IBMFHDRS=               \
 722         ibmf.h          \
 723         ibmf_msg.h      \
 724         ibmf_saa.h      \
 725         ibmf_utils.h
 726 
 727 IBMGTHDRS=              \
 728         ib_dm_attr.h    \
 729         ib_mad.h        \
 730         sm_attr.h       \
 731         sa_recs.h
 732 
 733 IBDHDRS=                \
 734         ibd.h
 735 
 736 OFHDRS=                 \
 737         ofa_solaris.h   \
 738         ofed_kernel.h
 739 
 740 RDMAHDRS=               \
 741         ib_addr.h       \
 742         ib_user_mad.h   \
 743         ib_user_sa.h    \
 744         ib_user_verbs.h \
 745         ib_verbs.h      \
 746         rdma_cm.h       \
 747         rdma_user_cm.h
 748 
 749 SOL_UVERBSHDRS=         \
 750         sol_uverbs.h    \
 751         sol_uverbs2ucma.h       \
 752         sol_uverbs_comp.h       \
 753         sol_uverbs_hca.h        \
 754         sol_uverbs_qp.h         \
 755         sol_uverbs_event.h
 756 
 757 SOL_UMADHDRS=           \
 758         sol_umad.h
 759 
 760 SOL_UCMAHDRS=           \
 761         sol_ucma.h      \
 762         sol_rdma_user_cm.h
 763 
 764 SOL_OFSHDRS=            \
 765         sol_cma.h       \
 766         sol_ib_cma.h    \
 767         sol_ofs_common.h        \
 768         sol_kverb_impl.h
 769 
 770 TAVORHDRS=              \
 771         tavor_ioctl.h
 772 
 773 HERMONHDRS=             \
 774         hermon_ioctl.h
 775 
 776 MLNXHDRS=               \
 777         mlnx_umap.h
 778 
 779 IDMHDRS=                \
 780         idm.h           \
 781         idm_impl.h      \
 782         idm_so.h        \
 783         idm_text.h      \
 784         idm_transport.h \
 785         idm_conn_sm.h
 786 
 787 ISCSITHDRS=             \
 788         radius_packet.h         \
 789         radius_protocol.h       \
 790         chap.h                  \
 791         isns_protocol.h         \
 792         iscsi_if.h              \
 793         iscsit_common.h
 794 
 795 ISOHDRS=                        \
 796         signal_iso.h
 797 
 798 DERIVED_LVMHDRS=        \
 799         md_mdiox.h              \
 800         md_basic.h              \
 801         mdmed.h                 \
 802         md_mhdx.h               \
 803         mdmn_commd.h
 804 
 805 LVMHDRS=                        \
 806         md_convert.h            \
 807         md_crc.h                \
 808         md_hotspares.h          \
 809         md_mddb.h               \
 810         md_mirror.h             \
 811         md_mirror_shared.h      \
 812         md_names.h              \
 813         md_notify.h             \
 814         md_raid.h               \
 815         md_rename.h             \
 816         md_sp.h                 \
 817         md_stripe.h             \
 818         md_trans.h              \
 819         mdio.h                  \
 820         mdvar.h                 
 821 
 822 ALL_LVMHDRS=                    \
 823         $(LVMHDRS)              \
 824         $(DERIVED_LVMHDRS)
 825 
 826 FMHDRS=                         \
 827         protocol.h              \
 828         util.h
 829 
 830 FMFSHDRS=                       \
 831         zfs.h
 832 
 833 FMIOHDRS=                       \
 834         ddi.h                   \
 835         disk.h                  \
 836         pci.h                   \
 837         scsi.h                  \
 838         sun4upci.h              \
 839         opl_mc_fm.h
 840 
 841 FSHDRS=                         \
 842         autofs.h                \
 843         cachefs_dir.h           \
 844         cachefs_dlog.h          \
 845         cachefs_filegrp.h       \
 846         cachefs_fs.h            \
 847         cachefs_fscache.h       \
 848         cachefs_ioctl.h         \
 849         cachefs_log.h           \
 850         decomp.h                \
 851         dv_node.h               \
 852         sdev_impl.h             \
 853         fifonode.h              \
 854         hsfs_isospec.h          \
 855         hsfs_node.h             \
 856         hsfs_rrip.h             \
 857         hsfs_spec.h             \
 858         hsfs_susp.h             \
 859         lofs_info.h             \
 860         lofs_node.h             \
 861         mntdata.h               \
 862         namenode.h              \
 863         pc_dir.h                \
 864         pc_fs.h                 \
 865         pc_label.h              \
 866         pc_node.h               \
 867         pxfs_ki.h               \
 868         snode.h                 \
 869         swapnode.h              \
 870         tmp.h                   \
 871         tmpnode.h               \
 872         udf_inode.h             \
 873         udf_volume.h            \
 874         ufs_acl.h               \
 875         ufs_bio.h               \
 876         ufs_filio.h             \
 877         ufs_fs.h                \
 878         ufs_fsdir.h             \
 879         ufs_inode.h             \
 880         ufs_lockfs.h            \
 881         ufs_log.h               \
 882         ufs_mount.h             \
 883         ufs_panic.h             \
 884         ufs_prot.h              \
 885         ufs_quota.h             \
 886         ufs_snap.h              \
 887         ufs_trans.h             \
 888         zfs.h                   \
 889         zut.h
 890 
 891 PCMCIAHDRS=             \
 892         pcata.h         \
 893         pcser_conf.h    \
 894         pcser_io.h      \
 895         pcser_reg.h     \
 896         pcser_manuspec.h \
 897         pcser_var.h
 898 
 899 SCSIHDRS=               \
 900         scsi.h          \
 901         scsi_address.h  \
 902         scsi_ctl.h      \
 903         scsi_fm.h       \
 904         scsi_params.h   \
 905         scsi_pkt.h      \
 906         scsi_resource.h \
 907         scsi_types.h    \
 908         scsi_watch.h
 909 
 910 SCSICONFHDRS=           \
 911         autoconf.h      \
 912         device.h
 913 
 914 SCSIGENHDRS=            \
 915         commands.h      \
 916         dad_mode.h      \
 917         inquiry.h       \
 918         message.h       \
 919         mode.h          \
 920         persist.h       \
 921         sense.h         \
 922         sff_frames.h    \
 923         smp_frames.h    \
 924         status.h
 925 
 926 SCSIIMPLHDRS=           \
 927         commands.h      \
 928         inquiry.h       \
 929         mode.h          \
 930         scsi_reset_notify.h \
 931         scsi_sas.h      \
 932         sense.h         \
 933         services.h      \
 934         smp_transport.h \
 935         spc3_types.h    \
 936         status.h        \
 937         transport.h     \
 938         types.h         \
 939         uscsi.h         \
 940         usmp.h
 941 
 942 SCSITARGETSHDRS=        \
 943         ses.h           \
 944         sesio.h         \
 945         sgendef.h       \
 946         stdef.h         \
 947         sddef.h         \
 948         smp.h
 949 
 950 SCSIADHDRS=
 951 
 952 SCSICADHDRS=
 953 
 954 SCSIISCSIHDRS=          \
 955         iscsi_door.h    \
 956         iscsi_if.h
 957 
 958 SCSIVHCIHDRS=           \
 959         scsi_vhci.h     \
 960         mpapi_impl.h    \
 961         mpapi_scsi_vhci.h
 962 
 963 SDCARDHDRS=             \
 964         sda.h           \
 965         sda_impl.h      \
 966         sda_ioctl.h
 967 
 968 FC4HDRS=                        \
 969         fc_transport.h  \
 970         linkapp.h       \
 971         fc.h            \
 972         fcp.h           \
 973         fcal_transport.h \
 974         fcal.h          \
 975         fcal_linkapp.h  \
 976         fcio.h
 977 
 978 FCHDRS=                 \
 979         fc.h            \
 980         fcio.h          \
 981         fc_types.h      \
 982         fc_appif.h
 983 
 984 FCIMPLHDRS=             \
 985         fc_error.h      \
 986         fcph.h
 987 
 988 FCULPHDRS=              \
 989         fcp_util.h      \
 990         fcsm.h
 991 
 992 SATAGENHDRS=            \
 993         sata_hba.h      \
 994         sata_defs.h     \
 995         sata_cfgadm.h
 996 
 997 SYSEVENTHDRS=           \
 998         ap_driver.h     \
 999         dev.h           \
1000         domain.h        \
1001         dr.h            \
1002         env.h           \
1003         eventdefs.h     \
1004         ipmp.h          \
1005         pwrctl.h        \
1006         svm.h           \
1007         vrrp.h
1008 
1009 CONTRACTHDRS=           \
1010         process.h       \
1011         process_impl.h  \
1012         device.h        \
1013         device_impl.h
1014 
1015 USBHDRS=        \
1016         usba.h  \
1017         usbai.h
1018 
1019 UWBHDRS=        \
1020         uwb.h   \
1021         uwbai.h
1022 
1023 UWBAHDRS=       \
1024         uwba.h
1025 
1026 USBAUDHDRS=           \
1027         usb_audio.h
1028 
1029 USBHUBDHDRS=            \
1030         hub.h           \
1031         hubd_impl.h
1032 
1033 USBHIDHDRS=             \
1034         hid.h
1035 
1036 USBHWARCHDRS=           \
1037         hwarc.h
1038 
1039 USBMSHDRS=              \
1040         usb_bulkonly.h  \
1041         usb_cbi.h
1042 
1043 USBPRNHDRS=           \
1044         usb_printer.h
1045 
1046 USBCDCHDRS=             \
1047         usb_cdc.h
1048 
1049 USBVIDHDRS=           \
1050         usbvc.h
1051 
1052 USBWCMHDRS=             \
1053         usbwcm.h
1054 
1055 UGENHDRS=           \
1056         usb_ugen.h
1057 
1058 HOTPLUGHDRS=    \
1059         hpcsvc.h        \
1060         hpctrl.h
1061 
1062 HOTPLUGPCIHDRS= \
1063         pcicfg.h        \
1064         pcihp.h
1065 
1066 RSMHDRS= \
1067         rsm.h   \
1068         rsm_common.h    \
1069         rsmapi_common.h \
1070         rsmpi.h \
1071         rsmpi_driver.h  \
1072         rsmka_path_int.h
1073 
1074 TSOLHDRS=               \
1075         label.h         \
1076         label_macro.h   \
1077         priv.h          \
1078         tndb.h          \
1079         tsyscall.h
1080 
1081 I1394HDRS=              \
1082         cmd1394.h       \
1083         id1394.h        \
1084         ieee1212.h      \
1085         ieee1394.h      \
1086         ixl1394.h       \
1087         s1394_impl.h    \
1088         t1394.h
1089 
1090 # "cmdk" headers used on sparc
1091 SDKTPHDRS=              \
1092         dadkio.h        \
1093         fdisk.h
1094 
1095 # "cmdk" headers used on i386
1096 DKTPHDRS=               \
1097         altsctr.h       \
1098         bbh.h           \
1099         cm.h            \
1100         cmdev.h         \
1101         cmdk.h          \
1102         cmpkt.h         \
1103         controller.h    \
1104         dadev.h         \
1105         dadk.h          \
1106         dadkio.h        \
1107         fctypes.h       \
1108         fdisk.h         \
1109         flowctrl.h      \
1110         gda.h           \
1111         quetypes.h      \
1112         queue.h         \
1113         tgcom.h         \
1114         tgdk.h
1115 
1116 # "pc" header files used on i386
1117 PCHDRS=                 \
1118         avintr.h        \
1119         dma_engine.h    \
1120         i8272A.h        \
1121         pcic_reg.h      \
1122         pcic_var.h      \
1123         pic.h           \
1124         pit.h           \
1125         rtc.h
1126 
1127 NXGEHDRS=                       \
1128         nxge.h                  \
1129         nxge_common.h           \
1130         nxge_common_impl.h      \
1131         nxge_defs.h             \
1132         nxge_hw.h               \
1133         nxge_impl.h             \
1134         nxge_ipp.h              \
1135         nxge_ipp_hw.h           \
1136         nxge_mac.h              \
1137         nxge_mac_hw.h           \
1138         nxge_fflp.h             \
1139         nxge_fflp_hw.h          \
1140         nxge_mii.h              \
1141         nxge_rxdma.h            \
1142         nxge_rxdma_hw.h         \
1143         nxge_txc.h              \
1144         nxge_txc_hw.h           \
1145         nxge_txdma.h            \
1146         nxge_txdma_hw.h         \
1147         nxge_virtual.h          \
1148         nxge_espc.h
1149 
1150 include Makefile.syshdrs
1151 
1152 dcam/%.check:   dcam/%.h
1153         $(DOT_H_CHECK)
1154 
1155 CHECKHDRS=                                              \
1156         $($(MACH)_HDRS:%.h=%.check)                     \
1157         $(AUDIOHDRS:%.h=audio/%.check)                  \
1158         $(AVHDRS:%.h=av/%.check)                        \
1159         $(BSCHDRS:%.h=%.check)                          \
1160         $(CHKHDRS:%.h=%.check)                          \
1161         $(CPUDRVHDRS:%.h=%.check)                       \
1162         $(CRYPTOHDRS:%.h=crypto/%.check)                \
1163         $(DCAMHDRS:%.h=dcam/%.check)                    \
1164         $(FC4HDRS:%.h=fc4/%.check)                      \
1165         $(FCHDRS:%.h=fibre-channel/%.check)             \
1166         $(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)    \
1167         $(FCULPHDRS:%.h=fibre-channel/ulp/%.check)      \
1168         $(IBHDRS:%.h=ib/%.check)                        \
1169         $(IBDHDRS:%.h=ib/clients/ibd/%.check)           \
1170         $(IBTLHDRS:%.h=ib/ibtl/%.check)                 \
1171         $(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)        \
1172         $(IBNEXHDRS:%.h=ib/ibnex/%.check)       \
1173         $(IBMGTHDRS:%.h=ib/mgt/%.check)                 \
1174         $(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)             \
1175         $(OFHDRS:%.h=ib/clients/of/%.check)                     \
1176         $(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)              \
1177         $(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)  \
1178         $(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)      \
1179         $(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)        \
1180         $(TAVORHDRS:%.h=ib/adapters/tavor/%.check)      \
1181         $(HERMONHDRS:%.h=ib/adapters/hermon/%.check)    \
1182         $(MLNXHDRS:%.h=ib/adapters/%.check)             \
1183         $(IDMHDRS:%.h=idm/%.check)                      \
1184         $(ISCSIHDRS:%.h=iscsi/%.check)                  \
1185         $(ISCSITHDRS:%.h=iscsit/%.check)                        \
1186         $(ISOHDRS:%.h=iso/%.check)                      \
1187         $(FMHDRS:%.h=fm/%.check)                        \
1188         $(FMFSHDRS:%.h=fm/fs/%.check)                   \
1189         $(FMIOHDRS:%.h=fm/io/%.check)                   \
1190         $(FSHDRS:%.h=fs/%.check)                        \
1191         $(LVMHDRS:%.h=lvm/%.check)                      \
1192         $(PCMCIAHDRS:%.h=pcmcia/%.check)                \
1193         $(SCSIHDRS:%.h=scsi/%.check)                    \
1194         $(SCSIADHDRS:%.h=scsi/adapters/%.check)         \
1195         $(SCSICONFHDRS:%.h=scsi/conf/%.check)           \
1196         $(SCSIIMPLHDRS:%.h=scsi/impl/%.check)           \
1197         $(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)      \
1198         $(SCSIGENHDRS:%.h=scsi/generic/%.check)         \
1199         $(SCSITARGETSHDRS:%.h=scsi/targets/%.check)     \
1200         $(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)       \
1201         $(SATAGENHDRS:%.h=sata/%.check)                 \
1202         $(SDCARDHDRS:%.h=sdcard/%.check)                \
1203         $(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1204         $(CONTRACTHDRS:%.h=contract/%.check)            \
1205         $(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1206         $(USBHUBDHDRS:%.h=usb/hubd/%.check)             \
1207         $(USBHIDHDRS:%.h=usb/clients/hid/%.check)       \
1208         $(USBHWARCHDRS:%.h=usb/clients/hwarc/%.check)   \
1209         $(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)       \
1210         $(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1211         $(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)    \
1212         $(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1213         $(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)   \
1214         $(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1215         $(USBHDRS:%.h=usb/%.check)                      \
1216         $(UWBHDRS:%.h=uwb/%.check)                      \
1217         $(UWBAHDRS:%.h=uwb/uwba/%.check)                      \
1218         $(I1394HDRS:%.h=1394/%.check)                   \
1219         $(RSMHDRS:%.h=rsm/%.check)                      \
1220         $(TSOLHDRS:%.h=tsol/%.check)                    \
1221         $(NXGEHDRS:%.h=nxge/%.check)
1222 
1223 
1224 .KEEP_STATE:
1225 
1226 .PARALLEL:                      \
1227         $(CHECKHDRS)            \
1228         $(ROOTHDRS)             \
1229         $(ROOTAUDHDRS)          \
1230         $(ROOTAVHDRS)           \
1231         $(ROOTCRYPTOHDRS)       \
1232         $(ROOTDCAMHDRS)         \
1233         $(ROOTISOHDRS)          \
1234         $(ROOTIDMHDRS)          \
1235         $(ROOTISCSIHDRS)        \
1236         $(ROOTISCSITHDRS)       \
1237         $(ROOTFC4HDRS)          \
1238         $(ROOTFCHDRS)           \
1239         $(ROOTFCIMPLHDRS)       \
1240         $(ROOTFCULPHDRS)        \
1241         $(ROOTFMHDRS)           \
1242         $(ROOTFMIOHDRS)         \
1243         $(ROOTFMFSHDRS)         \
1244         $(ROOTFSHDRS)           \
1245         $(ROOTIBDHDRS)          \
1246         $(ROOTIBHDRS)           \
1247         $(ROOTIBTLHDRS)         \
1248         $(ROOTIBTLIMPLHDRS)     \
1249         $(ROOTIBNEXHDRS)        \
1250         $(ROOTIBMGTHDRS)        \
1251         $(ROOTIBMFHDRS)         \
1252         $(ROOTOFHDRS)           \
1253         $(ROOTRDMAHDRS)         \
1254         $(ROOTSOL_OFSHDRS)      \
1255         $(ROOTSOL_UMADHDRS)     \
1256         $(ROOTSOL_UVERBSHDRS)   \
1257         $(ROOTSOL_UCMAHDRS)     \
1258         $(ROOTTAVORHDRS)        \
1259         $(ROOTHERMONHDRS)       \
1260         $(ROOTMLNXHDRS)         \
1261         $(ROOTLVMHDRS)          \
1262         $(ROOTPCMCIAHDRS)       \
1263         $(ROOTSCSIHDRS)         \
1264         $(ROOTSCSIADHDRS)       \
1265         $(ROOTSCSICONFHDRS)     \
1266         $(ROOTSCSIISCSIHDRS)    \
1267         $(ROOTSCSIGENHDRS)      \
1268         $(ROOTSCSIIMPLHDRS)     \
1269         $(ROOTSCSIVHCIHDRS)     \
1270         $(ROOTSDCARDHDRS)       \
1271         $(ROOTSYSEVENTHDRS)     \
1272         $(ROOTCONTRACTHDRS)     \
1273         $(ROOTUSBHDRS)          \
1274         $(ROOTUWBHDRS)          \
1275         $(ROOTUWBAHDRS)         \
1276         $(ROOTUSBAUDHDRS)       \
1277         $(ROOTUSBHUBDHDRS)      \
1278         $(ROOTUSBHIDHDRS)       \
1279         $(ROOTUSBHRCHDRS)       \
1280         $(ROOTUSBMSHDRS)        \
1281         $(ROOTUSBPRNHDRS)       \
1282         $(ROOTUSBCDCHDRS)       \
1283         $(ROOTUSBVIDHDRS)       \
1284         $(ROOTUSBWCMHDRS)       \
1285         $(ROOTUGENHDRS)         \
1286         $(ROOT1394HDRS)         \
1287         $(ROOTHOTPLUGHDRS)      \
1288         $(ROOTHOTPLUGPCIHDRS)   \
1289         $(ROOTRSMHDRS)          \
1290         $(ROOTTSOLHDRS)         \
1291         $($(MACH)_ROOTHDRS)
1292 
1293 
1294 install_h:                      \
1295         $(ROOTDIRS)             \
1296         LVMDERIVED_H            \
1297         .WAIT                   \
1298         $(ROOTHDRS)             \
1299         $(ROOTAUDHDRS)          \
1300         $(ROOTAVHDRS)           \
1301         $(ROOTCRYPTOHDRS)       \
1302         $(ROOTDCAMHDRS)         \
1303         $(ROOTISOHDRS)          \
1304         $(ROOTIDMHDRS)          \
1305         $(ROOTISCSIHDRS)        \
1306         $(ROOTISCSITHDRS)       \
1307         $(ROOTFC4HDRS)          \
1308         $(ROOTFCHDRS)           \
1309         $(ROOTFCIMPLHDRS)       \
1310         $(ROOTFCULPHDRS)        \
1311         $(ROOTFMHDRS)           \
1312         $(ROOTFMFSHDRS)         \
1313         $(ROOTFMIOHDRS)         \
1314         $(ROOTFSHDRS)           \
1315         $(ROOTIBDHDRS)          \
1316         $(ROOTIBHDRS)           \
1317         $(ROOTIBTLHDRS)         \
1318         $(ROOTIBTLIMPLHDRS)     \
1319         $(ROOTIBNEXHDRS)        \
1320         $(ROOTIBMGTHDRS)        \
1321         $(ROOTIBMFHDRS)         \
1322         $(ROOTOFHDRS)           \
1323         $(ROOTRDMAHDRS)         \
1324         $(ROOTSOL_OFSHDRS)      \
1325         $(ROOTSOL_UMADHDRS)     \
1326         $(ROOTSOL_UVERBSHDRS)   \
1327         $(ROOTSOL_UCMAHDRS)     \
1328         $(ROOTTAVORHDRS)        \
1329         $(ROOTHERMONHDRS)       \
1330         $(ROOTMLNXHDRS)         \
1331         $(ROOTLVMHDRS)          \
1332         $(ROOTPCMCIAHDRS)       \
1333         $(ROOTSCSIHDRS)         \
1334         $(ROOTSCSIADHDRS)       \
1335         $(ROOTSCSIISCSIHDRS)    \
1336         $(ROOTSCSICONFHDRS)     \
1337         $(ROOTSCSIGENHDRS)      \
1338         $(ROOTSCSIIMPLHDRS)     \
1339         $(ROOTSCSIVHCIHDRS)     \
1340         $(ROOTSDCARDHDRS)       \
1341         $(ROOTSYSEVENTHDRS)     \
1342         $(ROOTCONTRACTHDRS)     \
1343         $(ROOTUWBHDRS)          \
1344         $(ROOTUWBAHDRS)         \
1345         $(ROOTUSBHDRS)          \
1346         $(ROOTUSBAUDHDRS)       \
1347         $(ROOTUSBHUBDHDRS)      \
1348         $(ROOTUSBHIDHDRS)       \
1349         $(ROOTUSBHRCHDRS)       \
1350         $(ROOTUSBMSHDRS)        \
1351         $(ROOTUSBPRNHDRS)       \
1352         $(ROOTUSBCDCHDRS)       \
1353         $(ROOTUSBVIDHDRS)       \
1354         $(ROOTUSBWCMHDRS)       \
1355         $(ROOTUGENHDRS)         \
1356         $(ROOT1394HDRS)         \
1357         $(ROOTHOTPLUGHDRS)      \
1358         $(ROOTHOTPLUGPCIHDRS)   \
1359         $(ROOTRSMHDRS)          \
1360         $(ROOTTSOLHDRS)         \
1361         $($(MACH)_ROOTHDRS)
1362 
1363 all_h: $(GENHDRS)
1364 
1365 priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1366         $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1367 
1368 priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1369         $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1370 
1371 usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1372         $(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1373 
1374 LVMDERIVED_H:
1375         cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1376 
1377 clean:
1378         $(RM) $(GENHDRS)
1379 
1380 clobber:        clean
1381 
1382 check:  $(CHECKHDRS)
1383 
1384 FRC:
1385 
1386 # EXPORT DELETE START
1387 EXPORT_SRC:
1388         $(RM) wanboot_impl.h+ Makefile+
1389         sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1390                 < wanboot_impl.h > wanboot_impl.h+
1391         $(MV) wanboot_impl.h+ wanboot_impl.h
1392         sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1393                 < Makefile > Makefile+
1394         $(RM) Makefile
1395         $(MV) Makefile+ Makefile
1396         $(CHMOD) 444 Makefile wanboot_impl.h
1397 # EXPORT DELETE END